package cz.proks.bank.service;

import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;
import javax.xml.ws.RequestWrapper;
import javax.xml.ws.ResponseWrapper;

@WebService(targetNamespace = "http://bank.proks.cz/service/ScoreService/")
public interface ScoreService {
	
	@RequestWrapper(className = "cz.proks.bank.service.domain.ScoreRequest")
	@ResponseWrapper(className = "cz.proks.bank.service.domain.Score")
	@WebResult(name = "bonity")
	double getClientBonity(@WebParam(name = "availableMoney") long availableMoney, 
						   @WebParam(name = "requestedLoan") long requestedLoan, 
						   @WebParam(name = "totalLoans") long totalLoans);
}
